package com.qyt.hotel.dao;

import com.qyt.hotel.entity.RoomType;
import com.qyt.hotel.entity.RoomTypePrice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoomTypeMapper {
    List<RoomType> getRoomTypeList();

    RoomType getOne(RoomType roomType);

    Integer deleteRoomType(RoomType roomType);

    Integer addRoomType(RoomType roomType);

    Integer updateRoomType(RoomType roomType);

    Integer getRoomTypeByUse(@Param("roomTypeId") Integer roomTypeId);

    List<RoomTypePrice> statisticsRoomTypePrice();
}
